adding thread safety guidance