quick dirty script to streamline patch process