working on message sending implementation