fixed config file handling