public static function &get_instance() { // singleton setup if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }