minor change to how progress is saved on quets
fixed missing endif bug with blank lines