Added checking of bad config on startup and on web requests