new support for auto-creation of windows