lib: insert phis recursively
0.1.1