independent of unsafeWindow