writing separate csv for existing clients fixed