dirnode and leafnode implemented