here's a script to make pre-processing easier.