main: add some url magic