wip, fixed CodeUpdate, implementing SharedContexts