first attempt at running with windowing