made message serializable.