refactor export stage to use adapters