added checksave. May or may not work.