cleaning up libraries