lib: better api
0.2.0