import sha1 crypto code, cycle through the event loop less to make the sequence of events more predictable