use b_get/setval to reuse nodes and variable IDs