also catch UnauthorizedAccessException