use object to manage gistid and token