wip: functional loading and tree init