reading tree from file