re #7 added auto-generated code for editing draft