continued g2d context implementation