fix func exporting.