rewrite collections in  router