adding treegen command