rename temp file to temp.json