split the app.rb file