add a bit of protection for i2c buffers