integrating mongoose-tree into groups