wip: api: use hash