copied code for main configuration file