fix some api and manager functions