script to create csv from Bodart