clean up lib