factor out builtin access code