try to concurrent file writes to temp file