changed -k to --insecure for curl in check.sh