fix factory to get a new url every time