handling for spi-clk off/on added