set object_id on messages after allocation