make code loading from plugins respect code context and version