add isExist: file exist check