attempt to implement csv return format for rest service