adjustments to API, json output