fixed retrieval of config file