reduced spi latency and other bugfixes