checking in what is probably dead work as I am moving this to Ruby anyway