fix export/import code generation