add optional header attribute to csv plugin