add a general tree module.