Working on gfx api