improve error logs