clean up of convenience function and csv_example