fixing NPE and actually creating dependency nodes
alex & klaus