added handling for process flapping