let collect handle the in_place_close logic for add_after and replace
drwxr-xr-x lib
drwxr-xr-x t