added and replaced some checkAccess() calls