i2c added , some changes