update lib script