serialization and license boilerplate