Hijacking the app.engine function to first do specialzation