update bot related code