add support for export/echo