use stdin to send messages