remove apiv3 specific code from app.rb