added recursive checking on deps