moved writeResponse to sink.file.writeByDate
return changeCount from mergeMany, conditional writeByType on changeCount