switch to use k=v instead of json