attempt to port multi-window: take 2!