connector generator template, fixes in serialization template