use string instead of reading from file for sending messages
parameterize message sending