converted all pig scripts to use dynamic input and buckets