prototyped some file operations