added convenience functions to context