i think we need to handle the `anonymous_id` case too here?