fixed issues, working spi