main: add "from" parameter to script listen callback
smack: rewrite, use regexFactory