I realize this is first-cut code and don't think this needs to be handled in this pull request, but it seems like there should be some sanity checking of the config and error reporting so that someone setting this up is not scratching their head if something goes wrong.