change rednet.open to modem = peripheral.wrap