update multiflags to new metatable style