draft for combined metrics pig script