error out if configs haven't been set correctly