lib: use ids in `successors`
0.4.0