encapsulated CONTEXT apis