working on a btree to hold the currently loaded modules