update libs, misc edits