added RealWindow, compiles not tested