the implementation was horribly broken when <name> contained slashes, and a correct one will probably be quite different.