adding checking of config file