added a raise exception for missing URL