accept prefixes with or without trailing slash