clean up libraries