added support for deep
Merge pull request #1 from MauriceButler/deep-refs

added support for deep