added some functions to SPIio