public function loadConfig($env_file=null)
    {
        $this->configure($this->config_dir . '/configure');
        if ($this->debug) {
            $this->configure($this->config_dir . '/configure-debug');
        }
        $this->loadEnvironment($env_file);
        return $this;
    }