added evtctxget() function