fixing up libraries