Move loading of ini files before connection