added logging and gunicorn