updated script url checking