switch to gl, and turn on debug; check on shutdown atm