notify tree in async thread. Fixes #534