GDT init and refactorization