fixed i2c init, some changes