re-add library code