checking in very very old changes from when I was using pig