configuration file logic