added a custom tree parser