put the app in closure context