Pakistan taking steps to avert Afghan humanitarian crisis