reduced SPI latency and other bugfixes