mmgr&error handling