update for new JSON Rest API