work on DOS support (yeah!)