added tree functionality. nightly build.