update library API