fix messages, add support for url fragments