adding merge and export
assist functions