moved opengl stuff from parser to main
cleaned it up