rules matching working - output to stdout