building hubs using root and children (not finished)