add general fattree generation