add priv.js and distro generation