thread for handle sms