fix recording, prepare html export