improved ident serialization