using Uri for generator