exported write functions to WATreeWriter