use CloudPath to send messages and recover from wrong message type