added config file handling