api and manage bug