missed two file operations that needed a lock check