add url to opts