dealing with trailing slashes... I'm not happy about this