use data attr for serialization