rename access_flags to flags