add gestoreFile and some tests