fixed spi problems