gl fixes and debug