refactor for context map for scope (a new ContextMap is added) to clarify the necessary interface methods