added opengl 2 stuff