cleaning up spi object references