added method for os detection