update temp file clean up