communicating with chip properly