finish bug add and config bugtype