todo
envelope thread safety fixes for String class