added --url checking support