added tree maker, eventually integrating to validate_rel.py??