organized message handling and sending