added possibly functional export to csv