handle writing gists