support for trailing slash