update lib and script