fixes for gist plugin