added more error checking to config generation to test for invalid selects, enhanced logging