fleshing out _get_url routine