added to dos did a bit of refactoring.