partial fix for config file reading