passes context to handler callback (closes #49)