you should use this function in `_handle_id_conflict` to get the id out