compile messages for url