resolve dependencies.