add heldmaterial, helditem
move machine-generated function to utils
update namespaces in utils