cleanup Record a bit, rename representation to serialize