fix gist-adapter bugs
boost performance