rewrite the testing of the config file