WIP: secure window issue