use message (for better usage with knitr) instead of cat.