put the export function on the uithread.