refactored export facilities into common.