updated the gist script