remove library, add dependency