use matchdep to resolve dependencies