handle errors when parsing json numbers
distinct works now