modified flask app.run for the server