updating all scripts to support json output