add depends hook

the target method will now contains a depends hook.  This will lead
to improved meta data gathering.

Issue #39
Merge pull request #79 from metridoc/depends-hook

add depends hook