cleanup after splitting off from xlattice_go