added `--sync` option to pig extension