detection os fixed, should add an error message