added rudimentary csv feature