fix some bugs with saving empty gists. expose methods to help access tributary files