nicer duplicate class error message