add stub and cli lib (not work yet)