update lib according to new API