master #23 prepare S4 encapsulation for Structure types