adding support for pretty urls