remove unused function
make modules iterable, move some $__internals to $$internals
update @system to get rid of mode uses of $__, clean up
build