threading the rootlines.