added url manipulation functionality on output