related to #591: changed window to GlobalNamespace