add file size check, and gdt and gdt support, but not working yet.