trying to remove locking from dispatcher process