rewiring to avoid serial and spi peripherals