changed write_rx to update the correct variable (nw)
forgot to actually remove the rxd callback variable. (nw)