some more probably wrong work on URL delegate