add the first draft of url.fun to functions.r