added -n for dry-run