use atomic long for logical clock