libs and more base stuff