updated to latest gl changes