add library api