updates dependencies
[fixes #2] properly traverses node lookup tree