* replace BinaryFormatter with System.Text.Json.JsonSerializer * Using heads and data of nats * Remove unused namespaces.