all tree related stuff is not tested -> https://coveralls.io/files/124016077#L240