attempt at integrating spikedetekt