correctly send messages with content_type set