more changes to flask app