root check
added os check