A little more refactoring

added member function to build request urls