fixed bugs: toString, fromString, concurrent problems