merge with erlide/ewp_ctrl