added tree checking script