update and add library