initialize text
properly insert in two trees and always unlock mutex
why did this compile before?