allow passing in of nodeid