wip: n-d conversion