[refactor] renamed spi into event