some other pig scripts for rewriting and retrieving s/p/o distribution