toolchain: scripts for NEMS and other systems