adding external_id to message to_json