still working on preserving dos output