switch format to JSON, still unsure if wise