now it can support a url array