update lib from upstream