full parsing for tree objects