[wip] make code loading from plugins respect code context