move vestiges of recorder code to recorder.js