added the ability to check the access level