use app.traject instead of app.registry.traject.