reduce win/linux differences / fix error msg