add debug prints to country code parsing