added support for url segments