simplification of file reading interface