mod logiccontext