fixed urlgen to work with final api