fix cstrLen()
add getCurrentMasterThread()