slightly better config file reading