multi ctor workaround for window