start of file IO