resolve dependencies