modified to deploy with gunicorn