finished (?) fixing threading issues

finished (?) fixing threading issues, shared hashes, etc.