better catching in a function
console appender