better output. remove throw when no window exists.