added switch to resumeSuspended