only call newinstacnce for serializer once.