make it possible to bind handler to a context