adds treebuilding with migration

+ but there is still a bug with sig sites generation