pre separate
gdiinit
some fixes