allow passing a single inputTree