improve error when a name collision occurs