adding new functions from interface in transport driver + refactor chatMessage