error handler now works with multiple outout handlers. adding cli errors