add trace code for red screen failure