add 'p' (parent) entry to nodes