be gunicorn and multiprocess friendly
start up thread lazily to work with gunicorn