changed threadsafe 0.3.0 to 0.3.1