updated lsw to use get_windows()