work in progress: cleaning up debug info, add functions for mmgr to query caller This was SVN commit r1781.