added toggle-able pthread optimization