refactor the sinatra app file a bit