simlifying generateUrl methods
testing