added a raised exception for lack of url