trailing slash breaks things