api: more dead code removal
api: implement get_manager