added support for automated tree analising