able to resolve nested dependencies properly