fix and update lib