fixed unix errors