first stab at windowing