updated partial url building to use functools.partial