added error_log to stderr