changed sent message to serialized object