implemented save queueing and discarding useless intermediate saves. need more testing !