fix save option
added few check of file