fixes for gunicorn