improved speed in MG with freed means, and better tracking of itemtraces