ifdefed out new code to use SPI to deduce parameter types