switch to nets
move wiring to Net class