separate tree traversal for parsing rels. fixes #27