tested working version
debugged (heavily) new merger tree version