passes context to handlers