flesh out script for reading patch files.