MACRO FOR EXPORT AND IMPORT PATCH