add the custom object to messages