pass context to return handler