hook to route through a "app" script