add code to handle config files