bugfix
added sendTextMessage function