last save
fixed stuff using template