it's what I did originally, but using `system` pipes `STDOUT` whereas backticks don't.