added checking of the configuration file