using salt api instead salt-event calls