realized add wifi trigger functionality