sms added. some bugs fixed