removed GCD use for DOS emulation to avoid clogging main thread