added log error messages