initial add of the new api
Fixed a json problem