added support for multiple first windows