move send.pl regexes into the plugin. change debug output a bit