added functions for generating URLs