display_errors use global vars, broken, needs fixing