there is no rocket science to understand until NATO, NDS and RAW don't eradicate safe heaven for terrorist organizations inside Afghanistan till then it`s impossible for Pakistan to take action against terrorist groups inside Pakistan.
or i must Suggest to U.S. exclude India in Afghanistan and eradicate all the terrorist camps, dens and sanctuaries with collaboration of Pakistan and Afghanistan.
Otherwise there will be no win win attempt for U.S, because India will keep on using terrorist against Pak, and Pak will be helpless to support terrorist to get rid of anarchy in Pakistan. india should be excluded from Afghanistan. there is no other Option.