moved url generation to request