add gem certified on Windows to avoid SSL verification error + fix infinite loop in print_debug