refine dependency library