fix dit.js, minor tweaks to gk and tc