attempting to fix threaded encryption (asymetric). keeps bitching about window object not being available. still broken.