refactor GistLocalFileManager