mark some variables as local
'window activity' isn't what we want; 'message public' seems to be enough