remove all direct gl bits from main