fix with cleanALL, added shared window and context controlling