make text sent with location info and fix crash when network is unavailable