so i did it with ruby- mostly