move intermediate output to new module