added handling of Microsoft os