better error logging for invalid configurations