revert dump i/o changes. needs more elegant solution