some improvements in the wrappers to easify SerDe implementation