add NewAPI, always use int64 for charID