better output reporting in mem.js