add offline handler, extract raw message from incoming