some refactoring
client.command().pig