some test windows filtering code