work on json output and package counts