fixing error output for windows. removing extra output