fix up savedraft function