code to import idl structures