update cleanup of temporary files