add master/slave tracking to nu_pkg_tree