added snapshot hash to consumer.rb