reduced lock contention, enhanced multithreading capabilities, and general code cleanup