remove windows EOL, move app.run to separated file so it will work on ubuntu