           if err?
             callback(err)
           else
+            @config.current ?= {}
+            unless org_id is @config.current.org_id
+              delete @config.current.workspace_id
+              delete @config.current.note_id
+            @config.current.org_id = org_id
             callback(null,org_id)
 
   choose_workspace:(org_id,callback)=>

      else
        callback null,body

  list_notes:(org_id,workspace_id,note_type,callback)=>
    params = {
      url:@abs("/v2.0/org/#{org_id}/workspace/#{workspace_id}/notes?note_type=#{note_type}")
      headers: { Authorization: "Bearer #{@config.oauth.access}" }
      jar:null
      json:true

            else
              console.error "Not recognized: ",process.argv[2..process.argv.length].join(' ')

        when 'fetch'
          @ensure_active_access_token ()=>
            @config.current ?= {}
            if process.argv[3] in ['org','workspace','note','task']
              @choose_org (err,org_id)=>
                if process.argv[3] in ['workspace','note','task']
                  @choose_workspace org_id,(err,workspace_id)=>
                    if err?
                      console.error "ERROR",err
                      process.exit(1)
                    else
                      if process.argv[3] in ['note','task']
                        @choose_note org_id,workspace_id,process.argv[3],(err,note_id)=>
                          if err?
                            console.error "ERROR",err
                            process.exit(1)
                          else
                            @get_note org_id,workspace_id,note_id,(err,note)=>
                              if err?
                                process.exit(1)
                              else
                                console.log(JSON.stringify(note,null,2)+"\n")
                                process.exit(0)
                      else
                        @get_workspace org_id, workspace_id,(err,workspace)=>
                          if err?
                            process.exit(1)
                          else
                            console.log(JSON.stringify(workspace,null,2)+"\n")
                            process.exit(0)
                else
                  @get_org org_id,(err,org)=>
                    if err?
                      process.exit(1)
                    else
                      console.log(JSON.stringify(org,null,2)+"\n")
                      process.exit(0)
            else
              console.error "Not recognized: ",process.argv[2..process.argv.length].join(' ')
              process.exit(1)

        # ADD NOTE/TASK
        when '+note','+task'
          @ensure_active_access_token ()=>
            @interactive_add_note process.argv[2].substring(1),(err,response)=>
              if err?
                console.error "ERROR:",err
                process.exit(2)
              else
                console.log "Created",response
                @write_config ()=>process.exit(0)

        # VERSION
        when '--version', '-v'
