delete local library and add library dependency