adding gfx in compile