object reading from file