unified all autosave checks into one

Sory, I added unnecessary many codes about improve_autosave.
So, I want to unify all checks.