more work on windowstateprocessor