updated to use JSON.stringify rather than util.inspect