simplified collectWindowError option