added param. default=None and only export "window"