reverted to old generate_url function as the map based one was backwards

Signed-off-by: dan-hoerr <dhoerr@gmail.com>