some touches on the pig script