started to port output to gfxdevice abstraction.