take app.run out of production