have gist figured out, but still needs work