make spa_sequence work with the spike way of script execution