added config file check