error checking on config file