working with contexts in addition, removal and queries