cleaned up flaskapp