change *shared-contexts* from a hash table to a tree
changed *behaviors* to a env-tree