adding check-swap.sh