fixed issues with gunicorn