changed the name of various flags in mem.js