fixed parsing
fixing error handling for bad configs