add swi handlers