added collectWindows option