altered bulider to create an error_log automatically if missing