api: create function each time for now.