check for file access