adding thread safe update token