Alyssa/add wire support

you don't need to close the fd() just exit the inner with block and it will automatically close the file.