some gl stuff and other small things