pass context to anon wrapper