corrections for json output