avoiding printed error msg on linux