fixes to libraries