added stuff for SPI messages