added initial serialization code blocks