repair after rebuild and rest library swapout