change importFileForStruct to void function