set -x for sync