add macro support for url.