Alyssa/add wire support

line 71 has to stay in the inner block because it references `fd`. i can move the 3 lines below one indentation out.