misc ruby scripts for data munging