completed error-logging