can read and write trees