fixed socket and dos