added compile spi