fixing up master script for big runs