changed csv=true/false to format=csv/json