small bug in the beginning of encryption, unsure of source
bug in threaded encryption