           if err?
             callback(err)
           else
+            @config.current ?= {}
+            @config.current.note_id = note_id
             callback(null,note_id)
 
   _request:(method,uri,body,stream,callback)=>

          if err?
            callback(err)
          else
            callback(null,workspace_id)

  choose_note:(org_id,workspace_id,note_type,callback)=>

            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'
