sendmsg and fixed case when internet fails