event/sw: add configure function