add detect cap event