added pig scripts for 2.2