adding ability to dump dependencies

Change-Id: I6cc60479d0b24c25fbbb68ad5997ed0d2c455625