improved logic
Merge branch 'master' of https://github.com/unbit/uwsgi-consul