update to pig scripts