dealing with trailing slashes