lib clean-up