Import/Export rewriting