allow escape method to be defined in context