Revert "output is corrupt. reverting something"

This reverts commit 63456067b441b2ba9687723593c70fbfb10ad571.