cleanup before moving local