updated config file handling