add local vars to window scope