added buffer to file exporter utility