minimize the traffic between processes
add new check to ensure the lock is not done