make sure the relevant URL variable is set before running