script for applying multiple patches