moving loading config file to top