node base code