update lib and batch