i2c and misc fixes