update library, bug fix