updated thread safe gem