remove outdated spi.h, made local variables static