changed the temp file behavior