improve Epileptor implementation w/ @timpx