removed unused defun
removed buffer to send output to
check for string match earlier when checking process filter