fixed bug re missing 2nd order dependencies