basic file I/O set up