updated copy lib script