auto serialize by name