added logging to sendMi
added logging to sendMi