added send messages stuff