lib: fixes, api changes
1.2.0