ensure reading from file