lib clean up