integrated static tree/dynamic tree functionality