adding self reference to app in handler