moved gdt/idt objects to global scope