[lib] minor adjustments