improved script, configuration file as script argument