[bz, rebuild]  added getter to obtain thread to perform wait on it
[bz] fixed a bug with string serialization