fold dependencies