add note on thread safety
store the leafs as values