cleans things so it can be rerun to relink (janky)