let gcm generate message id
move outmsg serialization to ccs