fixed configuration file loading