resolve #40: List dependencies recursively