adding error log messages