added option to send buffered data from csv