rename, code to get window etc