library dependency handler