moved libraries to local files