added ability to change current context