added support for urlsargs in optimizer