event/sw: add worker core functions