expose addUrl function