adding partial support for export functions