compartmentalizing DOS code