fix ct.js, scribble output, for new resource regime