added OS checking