nth_root script more minor tweaks