move app to seperate file
fix bug for codeship.io