adding merge and export