add inheretence support to custom objects in options