document id generation better
make insensitive to changes in the number of slashes