[lib] clean up code