wip: implementing wrapper API