On stormy visits to Washington and London this week , the nation 's president , Gen. Pervez Musharraf , was dogged by accusations that Pakistan was not doing enough to curb Islamic militancy , or , worse , might even be aiding it .