pncconf -fix bugs, improve debug messages