clean up the up/re pathway