make work in multiple groups and multiple windows