more spi code.