modified i2c to output hash