added unit selection to csv export