adding checks for config file
adding checks for config file