logging for race prevention