better msg error reporting