continuing to refine error handling for file permissions