set up hasAccess