changed flags2access calls to flags2namespace