add gist-adapter, have some bugs