switch to using json