remove init() in api function