fix tasks and tests to use new export APIs