would alos work for modes:
on *:INPUT:#:{ if ($left($1,1) == +) { mode $active $1- } if ($left($1,1) == -) { mode $active $1- } }