embarassing, prototype code--all spike, no tests