generalized window search