added i2c util funcs