change checkAccess flow