wip trying to figure out why leaf would be non-bool