updated for makeSpi.py