initial version of file reader