clean up partial locals