assigning to window from a plugin, not good