make npdg work