small change after testing log_error flag