     swindler = Swindler.state
     swindler.on { (event: WindowCreatedEvent) in
       let window = event.window
-      print("new window: \(window)")
+      print("new window: \(window.title.value)")
     }
     swindler.on { (event: WindowPosChangedEvent) in
       print("Pos changed from \(event.oldVal) to \(event.newVal), external: \(event.external)")

      print("Size changed from \(event.oldVal) to \(event.newVal), external: \(event.external)")
    }
    swindler.on { (event: WindowDestroyedEvent) in
      print("window destroyed: \(event.window)")
    }
    swindler.on { (event: ApplicationMainWindowChangedEvent) in
      print("new main window: \(event.newVal?.title.value). old: \(event.oldVal?.title.value)")


    dispatchAfter(10.0) {
      for window in self.swindler.knownWindows {
        let title = window.title.value
        print("resizing \(title)")
        window.size.set(CGSize(width: 200, height: 200)).then { newValue in
          print("done with \(title), valid: \(window.valid), newValue: \(newValue)")
        }.error { error in
          print("failed to resize \(title), valid: \(window.valid), error: \(error)")
        }
      }
    }
