created direct output to csv option