remove cruft and make backspace work