Rename API for wires to wire instead of node
add error in api returns