update lib commonapi