new pnd_make.sh with many changes (but still compatible when usign the