updated error checking for config settings