fist step toward making it multi-window internally