some work in drawgfx class