made gains serialization human readable