fix API, remove debug code