add timeout to funneling input (prevent freezes)
allow reading from stdin in funnel script
use File::Temp instead of mktemp