RE: unsafeLocalState = unsafeDupablePerformIO?