just a minor change
Reworked dependency checking.