lib: cleanup