return hashes instead of json