added missing code for proviging your own url rules at runtime