added spanning tree impl for ccs not yet tested