changed sms command into eventEmitter